package com.briup.cms.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.briup.cms.bean.Category;
import com.briup.cms.bean.extend.CategoryExtend;

import java.util.List;

public interface ICategoryService {
    void insert(Category category);

    Category getCategoryById(Integer id);

    void update(Category category);

    void deleteById(Integer id);

    void deleteInBatch(List<Integer> ids);

    //分页+条件查询
    IPage<Category> query(Integer pageNum, Integer pageSize, Integer parentId);

    ////查询所有1级分类(不含2级)
    List<Category> queryAllOneLevel();

    //查询所有1级分类(含2级)
    List<CategoryExtend> queryAllParent();

    void insertInBatch(List<Category> list);

    //查收所有栏目信息
    List<Category> queryAll();
}
